package cn.ym.org.mapper;


import cn.ym.basic.mapper.BaseMapper;
import cn.ym.org.domain.Shop;
import cn.ym.org.dto.ShopDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper接口层：店铺
 */
public interface ShopMapper extends BaseMapper<Shop> {


    //根据地址和名称判断店铺是否入驻过
    Shop findByNameAndAddress(Shop shop);
    //根据店铺id来审核
    void updateState(@Param("id") Long shopId, @Param("state") int i);
    //图形报表
    List<ShopDto> echarts();
}
